Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@orion-js/env
Advanced tools
Orion Env is a utility for managing a collection of secrets in source control. The secrets are encrypted using public key, elliptic curve cryptography.
Orion Env is a utility for managing a collection of secrets in source control. The secrets are encrypted using public key, elliptic curve cryptography.
This package works as standlaone package. It does not depend on any other orionjs package.
It's like dotEnv but saved in source control.
Run the following script in a project that has the package installed. Save the password output because you will need to use it to decrypt the keys.
yarn orion-env init --path=<path>
Run the following script in a project that has the package installed and you will be prompted for the variable name and value.
yarn orion-env add --path=<path>
Define the following environment variables (in the old way):
ORION_ENV_FILE_PATH=<path>
The path to the env file.ORION_ENV_SECRET_KEY=<password>
The password to decrypt the keys.Then you can access the variables by importing the package and all the env variables defined will be the env object.
import {env} from '@orion-js/env'
env.XX
To add backwards compatibility you can also use this libary to set the environment variables.
import {loadEnv} from '@orion-js/env'
loadEnv(options)
This will set the environment variables for the current process.
Options:
secretKey
Secret password used to decrypt the encrypted env file. Default: process.env.ORION_ENV_SECRET_KEYenvFilePath
Location of the file to read. Default: process.env.ORION_ENV_FILE_PATHoverride
Set to true to set the environment variables even if the variable was already set. Default: process.env.ORION_ENV_OVERRIDEFAQs
Orion Env is a utility for managing a collection of secrets in source control. The secrets are encrypted using public key, elliptic curve cryptography.
The npm package @orion-js/env receives a total of 16 weekly downloads. As such, @orion-js/env popularity was classified as not popular.
We found that @orion-js/env demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.